package simplenotes;

import java.io.File;

public class Main {

    public static void main(String[] args) {
        // Initialisation
        Vars.OptsFileName = System.getProperty("user.home") + "/.SimpleNotes/Options.xml";
        File optsdir = new File(System.getProperty("user.home") + "/.SimpleNotes");
        if (!optsdir.exists()) {
            optsdir.mkdirs();
        }
        // End of initialisation

        // Properties
        Vars.LoadOptions();
        if (!Vars.opts.containsKey("DataFile")) {
            Vars.opts.setProperty("DataFile", System.getProperty("user.home") + "/.SimpleNotes/Notes.txt");
            Vars.SaveOptions();
        }
        // End of Properties

        MainFrame frm = new MainFrame();
        frm.setVisible(true);
    }
}
